package com.yc.cloud.sms.dto;


import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

/**
 * @title: SendSmsParam
 * @Author JackGu
 * @Date: 2022/10/14 13:31
 * @Version 1.0
 */
@Data
public class SmsParam {

    @NotEmpty(message = "手机号不能为空")
    @Pattern(regexp = "^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\\d{8}$", message = "电话号码格式不正确")
    private String mobile;

    private String templateId = "1317763";

    private String[] templateParams;


}
